home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / canvasmode_magnifier.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-02-15  |  2.0 KB  |  67 lines

  1. /*
  2.  For general Scribus (>=1.3.2) copyright and licensing information please refer
  3.  to the COPYING file provided with the program. Following this notice may exist
  4.  a copyright and/or license notice that predates the release of Scribus 1.3.2
  5.  for which a new license (GPL+exception) is in place.
  6.  */
  7. /***************************************************************************
  8. *                                                                         *
  9. *   This program is free software; you can redistribute it and/or modify  *
  10. *   it under the terms of the GNU General Public License as published by  *
  11. *   the Free Software Foundation; either version 2 of the License, or     *
  12. *   (at your option) any later version.                                   *
  13. *                                                                         *
  14. ***************************************************************************/
  15.  
  16.  
  17.  
  18. #ifndef CANVAS_MODE_MAGNIFIER_H
  19. #define CANVAS_MODE_MAGNIFIER_H
  20.  
  21. #include <QObject>
  22. #include <QTime>
  23.  
  24. #include "canvasmode.h"
  25. #include "fpointarray.h"
  26.  
  27. class LineMove;
  28. class PageItem;
  29. class PageItem_TextFrame;
  30. class QTimer;
  31. class ScribusMainWindow;
  32. class ScribusView;
  33.  
  34.  
  35. // This class encapsulate the old code for mouse interaction from scribusview.cpp
  36.  
  37. class CanvasMode_Magnifier :  public CanvasMode
  38. {
  39. public:
  40.     CanvasMode_Magnifier(ScribusView* view);
  41.  
  42.     virtual void enterEvent(QEvent *);
  43.     virtual void leaveEvent(QEvent *);
  44.     
  45.     virtual void activate(bool);
  46.     virtual void deactivate(bool);
  47.     virtual void mouseDoubleClickEvent(QMouseEvent *m);
  48.     virtual void mouseReleaseEvent(QMouseEvent *m);
  49.     virtual void mouseMoveEvent(QMouseEvent *m);
  50.     virtual void mousePressEvent(QMouseEvent *m);
  51.     virtual void drawControls(QPainter* p);
  52.  
  53. // protected:
  54. //     void setResizeCursor(int);
  55.  
  56. private:
  57.  
  58.     double Mxp, Myp, Dxp, Dyp;
  59.     double SeRx, SeRy;
  60.     ScribusMainWindow* m_ScMW;
  61.     bool m_cursorVisible;
  62.     bool m_lastPosWasOverGuide;
  63. };
  64.  
  65.  
  66. #endif
  67.